package com.io.protocol;

/**
 * 命令的一些常量
 * Created by yangyx on 2016/7/21.
 */
public class CommandConstants {
    public static final int RegisterReq = 0x0100;                 //注册请求
    public static final int RegisterResp = 0x8100;                //注册响应
    public static final int CHANGEPASSWORD=0x8101;                //修改密码

    public static final int RealtimeRptReq = 0x0200;              //实时数据上报

    public static final int StatusRptReq = 0x0300;                //状态改变报告

    public static final int FaultRptReq = 0x0400;                 //故障上报

    public static final int ChgTermPwdReq = 0x8101;               //修改终端登录密码请求
    public static final int ChgTermPwdResp = 0x0101;              //修改终端登录密码响应

    public static final byte RespResCode_Success = 0;              //注册请求成功
    public static final byte RespResCode_ServerError = (byte)0xFF; //注册请求失败
    public static final byte RespResCode_InvalidParameter = (byte)0x80;  //注册参数异常

    public static final byte DscVehicleCommon = 0x01;      //整车数据
    public static final byte DscBatterySummary = 0x02;     //电池概况
    public static final byte DscBatteryVoltage = 0x03;     //电池电压详情
    public static final byte DscBatteryTemperature = 0x04; //电池温度详情
    public static final byte DscMotorMcuDcdc = 0x05;       //电机/MCU/DCDC
    public static final byte DscAirConditionCommon = 0x06; //空调(通用)
    public static final byte DscAirConditionEv = 0x07;     //空调(电动车)
    public static final byte DscOnboardCharger = 0x08;     //车载充电器





}
